Skip to content

feat: add cargo-fuzz target for recipient (#911) - #980

Merged
greatest0fallt1me merged 4 commits into
CalloraOrg:mainfrom
adeboladee:feat/recipient-cargo-fuzz
Jul 29, 2026
Merged

feat: add cargo-fuzz target for recipient (#911)#980
greatest0fallt1me merged 4 commits into
CalloraOrg:mainfrom
adeboladee:feat/recipient-cargo-fuzz

Conversation

@adeboladee

Copy link
Copy Markdown
Contributor

Closes #911. Adds cargo-fuzz target in contracts/recipient/fuzz/targets/main.rs to hammer recipient entrypoints with malformed inputs. Implements require_auth, overflow-safe math, Rustdoc documentation, and comprehensive test coverage verifying cargo test.

- Add recipient registry contract (init, register, update, remove, views)
- Implement require_auth on all state-changing entrypoints
- Overflow-safe math with checked_add/checked_sub
- NatSpec-style rustdoc on every public fn
- 21 unit tests covering happy paths, auth gates, edge cases
- cargo-fuzz target in contracts/recipient/fuzz/targets/main.rs
  hammering 7 operations with malformed inputs and invariant checks
- Closes CalloraOrg#911
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@adeboladee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Merged into main via admin resolver (-X theirs).

@greatest0fallt1me
greatest0fallt1me merged commit cbb66c2 into CalloraOrg:main Jul 29, 2026
6 checks passed
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

LGTM — clean, tested. Merged 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cargo-fuzz target for recipient [b#086]

2 participants